


if __name__ == '__main__':
    #追加写 append
    f=open('f:/python1班/mingdan.txt','a')
    for i in range(0,20):
        f.writelines("其实wangchengxu也是挺帅的\n")
    f.close()
    print("文件创建成功！")